<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: ajinlong
  Date: 2021/6/26
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<body>

<form:form modelAttribute="user">
    <table>
        <tr>
            <td>用户名</td>
            <td><form:input path="userId"/></td>
            <td><form:errors path="userId"/> </td>
        </tr>
        <tr>
            <td>密码</td>
            <td><form:password path="password"/></td>
            <td><form:errors path="password"/> </td>
        </tr>
        <tr>
            <td>生日</td>
            <td><form:input path="birthday"/></td>
            <td><form:errors path="birthday"/> </td>
        </tr>
        <tr>
            <td>手机</td>
            <td><form:input path="phone"/></td>
            <td><form:errors path="phone"/> </td>
        </tr>
        <tr>
            <td>邮箱</td>
            <td><form:input path="email"/></td>
            <td><form:errors path="email"/> </td>
        </tr>
        <tr>
            <td>省份</td>
            <td>城市</td>
            <td>街道</td>
        </tr>
        <tr>
            <td><form:input path="address.province"/></td>
            <td><form:input path="address.city"/></td>
            <td><form:input path="address.street"/></td>
        </tr>
        <tr>
            <td><form:errors path="address.province"/> </td>
            <td><form:errors path="address.city"/> </td>
            <td><form:errors path="address.street"/> </td>
        </tr>
        <tr>
            <td>是否同意该协议</td>
            <td><form:checkbox path="agree"/></td>
            <td><form:errors path="agree"/> </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="提交"></td>
        </tr>
    </table>
</form:form>

</body>
</html>
